import QtQuick 1.0


BorderImage
{
    id: textBar
    width: 315
    height: 52
    source: "images/edior.png"
    anchors.horizontalCenter: parent.horizontalCenter


    property alias text: input.text

    TextInput        {
        id: input
        width: 310
        anchors.centerIn: parent
        font.pixelSize: 20
        color: "grey"
        text: "Enter a valid city name"
        font.italic: true

        MouseArea{
            anchors.fill: parent
            onClicked: {
                if (input.text == "Enter a valid city name")
                {
                    input.forceActiveFocus();
                    input.openSoftwareInputPanel ();
                    input.text =""
                    input.font.italic= false
                }
                else
                {
                    input.forceActiveFocus();
                    input.openSoftwareInputPanel ();
                }
            }
        }
    }

}
